Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-textarea-autosize

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-textarea-autosize

Stub TypeScript definitions entry for react-textarea-autosize, which provides its own types definitions

  • 8.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
122K
decreased by-36.22%
Maintainers
1
Weekly downloads
 
Created

What is @types/react-textarea-autosize?

@types/react-textarea-autosize provides TypeScript definitions for the react-textarea-autosize package, which is a React component that automatically adjusts the height of a textarea as the user types.

What are @types/react-textarea-autosize's main functionalities?

Auto-resizing Textarea

This feature allows the textarea to automatically adjust its height based on the content, with a minimum of 3 rows and a maximum of 6 rows.

import TextareaAutosize from 'react-textarea-autosize';

function App() {
  return (
    <TextareaAutosize minRows={3} maxRows={6} />
  );
}

Custom Styling

This feature demonstrates how to apply custom styles to the auto-resizing textarea.

import TextareaAutosize from 'react-textarea-autosize';

function App() {
  return (
    <TextareaAutosize style={{ width: '100%', padding: '10px' }} />
  );
}

Handling Events

This feature shows how to handle events, such as the onChange event, with the auto-resizing textarea.

import TextareaAutosize from 'react-textarea-autosize';

function App() {
  const handleChange = (event) => {
    console.log(event.target.value);
  };

  return (
    <TextareaAutosize onChange={handleChange} />
  );
}

Other packages similar to @types/react-textarea-autosize

FAQs

Package last updated on 17 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc